@function getRem($pixel) {
  @return $pixel/200*1rem;
}
@function getRemFour($top, $right, $bottom, $left) {
  @return $top/200*1rem $right/200*1rem $bottom/200*1rem $left/200*1rem;
}
@mixin getFont($size, $link, $color, $align) {
  font-size: getRem($size);
  line-height: getRem($link);
  color: $color;
  text-align: $align;
}
@mixin getWH($width, $height) {
  width: getRem($width);
  height: getRem($height);
}

//省略号
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.articleContent {
  width: getRem(750);
  .aic {
    width: 100%;
    height: 100%;
    .articleTypeSelect {
      position: fixed;
      bottom: 0;
      width: 100%;
      z-index: 1;
      background: #fff;
    }
    .see {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: getRem(890);
      background: rgba(0,0,0,.2);
    }
  }
  .articleTitle {
    width: 100%;
    height: getRem(100);
    padding: 0 getRem(40);
    font-size: getRem(30);
    outline: none;
    border: 0;
    &::-webkit-input-placeholder {
      font-size: getRem(30);
    }
  }
  .type {
    width: 100%;
    height: getRem(100);
    line-height: getRem(100);
    padding: 0 getRem(40);
    font-size: getRem(30);
    background: #fff;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
  }
  .uploadPhotos {
    width: getRem(750);
    padding: getRemFour(24, 0, 20, 34);
    overflow: hidden;
    position: relative;
    .picture {
      .pictureList {
        @include getWH(150, 150);
        float: left;
        position: relative;
        overflow: hidden;
        a {
          position: absolute;
          z-index: 1;
          top: getRem(-4);
          left: getRem(-3);
          @include getWH(60, 60);
          display: block;
          background: url(../assets/deletePicture.png) no-repeat;
          background-size: getRem(40) getRem(40);
        }
        p {
          position: absolute;
          z-index: 999;
          top: 0;
          left: 0;
          color: #000;
        }
        img {
          width: 100%;
          height: 100%;
          position: absolute;
          z-index: 0;
          display: block;
          border-top-left-radius: getRem(20);
        }
        margin-bottom: getRem(16);
        margin-right: getRem(25);
        &:nth-child(4n) {
          margin-right: 0;
        }
      }
    }
    .photosBack {
      @include getWH(146, 146);
      background: #EEEEEE;
      overflow: hidden;
      clear: both;
      .qiniuUpload {
        @include getWH(146, 146);
        border: 0;
      }
      .upload {
        @include getWH(66, 57);
        display: block;
        margin: getRem(45) auto 0 auto;
        background: url(../assets/cameraImg.png) no-repeat;
        background-size: getRem(66) getRem(57);
        input {
          opacity: 0;
        }
      }
    }
    p {
      position: absolute;
      left: getRem(196);
      bottom: getRem(82);
      @include getFont(28, 30, #b5b5b5, left);
    }
  }
  .articleProfile {
    width: 100%;
    height: getRem(600);
    font-size: getRem(30);
    padding: getRem(20) getRem(40);
    outline: none;
    border: 0;
    &::-webkit-input-placeholder {
      font-size: getRem(30);
    }
  }
  a {
    width: getRem(750);
    position: fixed;
    bottom: 0;
    display: block;
    height: getRem(100);
    font-size: getRem(30);
    line-height: getRem(100);
    color: #fff;
    background: #268bd2;
    text-align: center;
  }
}
